package com.ccrfid.rmc6.repository.business.prison.rollcall;

import com.ccrfid.rmc6.entity.business.prison.rollcall.PrisonRollcallTaskTimeEntity;
import org.springframework.data.repository.Repository;

import java.sql.Time;
import java.util.List;

public interface PrisonRollcallTaskTimeRepository extends Repository<PrisonRollcallTaskTimeEntity, Long> {

    PrisonRollcallTaskTimeEntity getById(Long id);

    PrisonRollcallTaskTimeEntity getByTaskTime(Time taskTime);

    Boolean existsByTaskTime(Time taskTime);

    void deleteAllByTaskTime(Time taskTime);

    PrisonRollcallTaskTimeEntity save(PrisonRollcallTaskTimeEntity entity);

    List<PrisonRollcallTaskTimeEntity> getAllByOrderByTaskTimeAsc();
}
